.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 0px 10px
}

.chat-dialog {
  position: fixed;
  width: 360px;
  height: 600px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  max-height: 100%;
  min-height: 0;
}

.chat-dialog.collapsed {
  height: 48px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.chat-header-actions {
  display: flex;
  gap: 8px;
}

.chat-header-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header-btn:hover {
  color: #1890ff;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.chat-message.user {
  align-self: flex-end;
}

.chat-message.bot {
  align-self: flex-start;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  background: #f5f5f5;
  color: #333;
  word-break: break-word;
  line-height: 1.5;
}

.user .message-bubble {
  background: #1890ff;
  color: #fff;
}

.message-time {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.chat-input-container {
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 12px;
}

.chat-input {
  flex: 1;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 8px 12px;
  resize: none;
}

.chat-input:focus {
  border-color: #1890ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.chat-send-btn {
  align-self: flex-end;
}

.error-message {
  color: #ff4d4f;
  text-align: center;
  padding: 8px;
  margin: 8px 0;
}

/* 思考动画 */
@keyframes thinking {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

.thinking-dots {
  display: flex;
  gap: 4px;
  padding: 8px;
}

.thinking-dot {
  width: 8px;
  height: 8px;
  background: #666;
  border-radius: 50%;
  animation: thinking 1.4s infinite;
}

.thinking-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
  animation-delay: 0.4s;
}





.semi-chat{
  max-width: unset !important;
}

.semi-chat-container {
  overflow-x: hidden !important;
}

/* 附件标题样式 */
.semi-chat-attachment-file-title {
  max-width: unset !important;
}



/* 用户消息样式 */
.semi-chat-chatBox-content-user {
  background: #b4bde9 !important;
}

.semi-chat-chatBox-content-user .semi-typography, .semi-chat-chatBox-content-user .semi-typography code {
  font-size: 14px;
  font-family: inherit;
  color: #000;
}


/* 助手消息样式 */
.semi-chat-chatBox-content-bubble {
  background: #fff;
}

.semi-chat-chatBox-content .semi-typography {
  font-size: 14px;
  font-family: inherit;
  color: #000;
}


/* 输入区样式 */
.semi-chat-inputBox-container{
  background: #fff;
}